package com.example.electronicmall.service.impl;

import com.example.electronicmall.service.BusinessService;
import com.example.electronicmall.utils.PageUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.example.electronicmall.dao.BusinessDao;
import com.example.electronicmall.entity.BusinessEntity;


@Service("businessService")
public class BusinessServiceImpl extends ServiceImpl<BusinessDao, BusinessEntity> implements BusinessService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        return null;
    }

    @Override
    public BusinessEntity login(String username, String password) {
        return this.baseMapper.selectOne(new QueryWrapper<BusinessEntity>().eq("account", username).eq("password", password));
    }

}